package User;

import Operation.*;

import java.util.Scanner;

/**
 * Creat with IntelliJ IDEA
 * Description:管理员 - 子类
 * User:WZW
 * Date:2021-11-27
 * Time:18:30
 */
public class Administrators extends User{

    public Administrators(String name) {
        super(name);
        super.iOperations = new IOperation[]{
                new Exit(),
                new Add(),
                new Del(),
                new Show(),
                new Search(),
        };
    }

    @Override
    public int menu() {
        System.out.println("=====管理员菜单=====");
        System.out.println("1.增加图书");
        System.out.println("2.删除图书");
        System.out.println("3.展示图书");
        System.out.println("4.查找图书");
        System.out.println("0.退出系统");
        System.out.println("==================");
        System.out.println("请选择：>");
        Scanner scanner = new Scanner(System.in);
        int chioce = scanner.nextInt();
        return chioce;
    }


}
